package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dataoperationrecordsheet")
public class Dataoperationrecordsheet {
    /**
     * 操作id
     */
    @TableId(value = "operation_id", type = IdType.ASSIGN_ID)
    private String operationId;

    /**
     * 操作目标id（绑定的目标id）
     */
    @TableField(value = "operation_target_id")
    private String operationTargetId;

    /**
     * 操作类型
     */
    @TableField(value = "operation_type")
    private String operationType;

    /**
     * 操作时间
     */
    @TableField(value = "operation_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operationTime;

    /**
     * 操作人id
     */
    @TableField(value = "operator_id")
    private String operatorId;
    @TableField(exist = false)
    private Offermanagementtable offermanagementtable;
    @TableField(exist = false)
    private Employee employee;
    @TableField(exist = false)
    private Department department;



}